/****************************************************************************
** Meta object code from reading C++ file 'opcua_server.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.12)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../opcua_server.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'opcua_server.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.12.12. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_opcua_server_t {
    QByteArrayData data[31];
    char stringdata0[381];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_opcua_server_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_opcua_server_t qt_meta_stringdata_opcua_server = {
    {
QT_MOC_LITERAL(0, 0, 12), // "opcua_server"
QT_MOC_LITERAL(1, 13, 17), // "update_plc_status"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 11), // "RobotModule"
QT_MOC_LITERAL(4, 44, 2), // "rm"
QT_MOC_LITERAL(5, 47, 12), // "VisionModule"
QT_MOC_LITERAL(6, 60, 2), // "vm"
QT_MOC_LITERAL(7, 63, 11), // "StripModule"
QT_MOC_LITERAL(8, 75, 2), // "sm"
QT_MOC_LITERAL(9, 78, 19), // "update_station_info"
QT_MOC_LITERAL(10, 98, 6), // "PRLine"
QT_MOC_LITERAL(11, 105, 6), // "prline"
QT_MOC_LITERAL(12, 112, 11), // "StationInfo"
QT_MOC_LITERAL(13, 124, 5), // "sinfo"
QT_MOC_LITERAL(14, 130, 19), // "update_fault_record"
QT_MOC_LITERAL(15, 150, 5), // "fault"
QT_MOC_LITERAL(16, 156, 12), // "start_thread"
QT_MOC_LITERAL(17, 169, 17), // "read_station_info"
QT_MOC_LITERAL(18, 187, 17), // "read_robot_module"
QT_MOC_LITERAL(19, 205, 5), // "index"
QT_MOC_LITERAL(20, 211, 6), // "signal"
QT_MOC_LITERAL(21, 218, 18), // "read_vision_module"
QT_MOC_LITERAL(22, 237, 17), // "read_strip_module"
QT_MOC_LITERAL(23, 255, 20), // "update_asclient_node"
QT_MOC_LITERAL(24, 276, 11), // "OPC_NODE_ID"
QT_MOC_LITERAL(25, 288, 4), // "node"
QT_MOC_LITERAL(26, 293, 28), // "update_asclient_numeric_node"
QT_MOC_LITERAL(27, 322, 14), // "namespaceIndex"
QT_MOC_LITERAL(28, 337, 7), // "numeric"
QT_MOC_LITERAL(29, 345, 27), // "update_asclient_string_node"
QT_MOC_LITERAL(30, 373, 7) // "qstring"

    },
    "opcua_server\0update_plc_status\0\0"
    "RobotModule\0rm\0VisionModule\0vm\0"
    "StripModule\0sm\0update_station_info\0"
    "PRLine\0prline\0StationInfo\0sinfo\0"
    "update_fault_record\0fault\0start_thread\0"
    "read_station_info\0read_robot_module\0"
    "index\0signal\0read_vision_module\0"
    "read_strip_module\0update_asclient_node\0"
    "OPC_NODE_ID\0node\0update_asclient_numeric_node\0"
    "namespaceIndex\0numeric\0"
    "update_asclient_string_node\0qstring"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_opcua_server[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    3,   69,    2, 0x06 /* Public */,
       9,    2,   76,    2, 0x06 /* Public */,
      14,    1,   81,    2, 0x06 /* Public */,
      16,    0,   84,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      17,    2,   85,    2, 0x0a /* Public */,
      18,    2,   90,    2, 0x0a /* Public */,
      21,    2,   95,    2, 0x0a /* Public */,
      22,    2,  100,    2, 0x0a /* Public */,
      23,    1,  105,    2, 0x0a /* Public */,
      26,    2,  108,    2, 0x0a /* Public */,
      29,    2,  113,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3, 0x80000000 | 5, 0x80000000 | 7,    4,    6,    8,
    QMetaType::Void, 0x80000000 | 10, 0x80000000 | 12,   11,   13,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 10, 0x80000000 | 12,   11,   13,
    QMetaType::Void, QMetaType::Int, QMetaType::Bool,   19,   20,
    QMetaType::Void, QMetaType::Int, QMetaType::Bool,   19,   20,
    QMetaType::Void, QMetaType::Int, QMetaType::Float,    2,    2,
    QMetaType::Void, 0x80000000 | 24,   25,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   27,   28,
    QMetaType::Void, QMetaType::Int, QMetaType::QString,   27,   30,

       0        // eod
};

void opcua_server::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<opcua_server *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->update_plc_status((*reinterpret_cast< RobotModule(*)>(_a[1])),(*reinterpret_cast< VisionModule(*)>(_a[2])),(*reinterpret_cast< StripModule(*)>(_a[3]))); break;
        case 1: _t->update_station_info((*reinterpret_cast< PRLine(*)>(_a[1])),(*reinterpret_cast< StationInfo(*)>(_a[2]))); break;
        case 2: _t->update_fault_record((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 3: _t->start_thread(); break;
        case 4: _t->read_station_info((*reinterpret_cast< PRLine(*)>(_a[1])),(*reinterpret_cast< StationInfo(*)>(_a[2]))); break;
        case 5: _t->read_robot_module((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 6: _t->read_vision_module((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 7: _t->read_strip_module((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< float(*)>(_a[2]))); break;
        case 8: _t->update_asclient_node((*reinterpret_cast< OPC_NODE_ID(*)>(_a[1]))); break;
        case 9: _t->update_asclient_numeric_node((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 10: _t->update_asclient_string_node((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< RobotModule >(); break;
            case 2:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StripModule >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< VisionModule >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PRLine >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StationInfo >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< PRLine >(); break;
            case 1:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< StationInfo >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< OPC_NODE_ID >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (opcua_server::*)(RobotModule , VisionModule , StripModule );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&opcua_server::update_plc_status)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (opcua_server::*)(PRLine , StationInfo );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&opcua_server::update_station_info)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (opcua_server::*)(QString );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&opcua_server::update_fault_record)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (opcua_server::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&opcua_server::start_thread)) {
                *result = 3;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject opcua_server::staticMetaObject = { {
    &QMainWindow::staticMetaObject,
    qt_meta_stringdata_opcua_server.data,
    qt_meta_data_opcua_server,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *opcua_server::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *opcua_server::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_opcua_server.stringdata0))
        return static_cast<void*>(this);
    return QMainWindow::qt_metacast(_clname);
}

int opcua_server::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void opcua_server::update_plc_status(RobotModule _t1, VisionModule _t2, StripModule _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void opcua_server::update_station_info(PRLine _t1, StationInfo _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void opcua_server::update_fault_record(QString _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void opcua_server::start_thread()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
